package com.momoauth.api_client.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.momoauth.api_client.entity.Login_Log;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LoginLogMapper extends BaseMapper<Login_Log> {

    /**
     * 登录日志列表
     * @param page
     * @param wrapper
     * @return
     */
    @Select("SELECT * FROM login_log ${ew.customSqlSegment}")
    List<Login_Log> getLoginLogList(Page<Login_Log> page, @Param(Constants.WRAPPER) QueryWrapper wrapper);
}
